package com.bwie.controller;

import com.bwie.pojo.TbOrder;
import com.bwie.service.TbGroupService;
import com.bwie.utils.R;
import com.bwie.vo.GroupVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @description : TODO
 * @Author QiHainan
 * @Create 2025/7/28 20:43
 * @Version 1.0
 */
@RestController
@RequestMapping("/team/group")
public class GroupController {
    @Autowired
    TbGroupService tbGroupService;

    /**
     * 参团列表查询
     * @param groupVo
     * @return
     */
    @PostMapping("/getGroupList")
    public R getGroupList(@RequestBody GroupVo groupVo){
        return tbGroupService.getGroupList(groupVo);
    }

    @PostMapping("/getMyOrderList")
    public R getOrderListById(){
        return  tbGroupService.getOrderListById();
    }
    @PostMapping("/deleteOrder")
    public R deleteOrder(@RequestBody TbOrder tbOrder){
        return  tbGroupService.deleteOrder(tbOrder);
    }

}
